package com.library.guard.core.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @Package: com.library.guard.core.domain
 * @ClassName: ReadTagGpoSet
 * @Author: Yin
 * @Date: 17:23
 * @Description: 机器天线设置
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AntSet {

    /** ip */
    private String ip;

    /** 天线 */
    @Min(value = 1 , message = "天线位至少是 1")
    @Max(value = 4 , message = "天线位至多是 4")
    private Integer ant;

    /** 功率 */
    @Min(value = 1 , message = "读写功率不能低于 1")
    @Max(value = 3300 , message = "读写功率不能超过 3300")
    private Integer power;
}
